import request from "@/request/index.js"
const openApi = {
	// 创建反馈
	createFeedback: (data) => {
		return request("/biz/open/createFeedback", {
			method: "post",
			data
		})
	},
	deleteStrategy: (id) => {
		return request("/biz/open/deleteStrategy?id=" + id, {
			method: "delete",
		})
	},
	getBannerList: (data) => {
		return request("/biz/open/getBannerList", {
			method: "get",
			data
		})
	},
	// 转发
	createShareRecord: (id) => {
		return request("/biz/open/createShareRecord?id=" + id, {
			method: "post",
		})
	},
	// 收藏分页
	getUserCollectPage: (data) => {
		return request("/biz/open/getUserCollectPage", {
			method: "get",
			data
		})
	},
	// 点赞分页
	getCommentRecordPage: (data) => {
		return request("/biz/open/getCommentRecordPage", {
			method: "get",
			data
		})
	},
	// 转发记录
	getShareRecordPage: (data) => {
		return request("/biz/open/getShareRecordPage", {
			method: "get",
			data
		})
	},
	getAgreement: (data) => {
		return request("/biz/open/getAgreement", {
			method: "get",
			data
		})
	},
	getStrategyCollectList: (data) => {
		return request("/biz/open/getStrategyCollectList", {
			method: "get",
			data
		})
	},
	getStrategyCommentList: (data) => {
		return request("/biz/open/getStrategyCommentList", {
			method: "get",
			data
		})
	},
	getStrategyCommentRecordList: (data) => {
		return request("/biz/open/getStrategyCommentRecordList", {
			method: "get",
			data
		})
	},
	getUserFollowPage: (data) => {
		return request("/biz/open/getUserFollowPage", {
			method: "get",
			data
		})
	},
	getCommentPage: (data) => {
		return request("/biz/open/getCommentPage", {
			method: "get",
			data
		})
	},
	createComment: (data) => {
		return request("/biz/open/createComment", {
			method: "POST",
			data
		})
	},
	getStrategy: (id) => {
		return request('/biz/open/getStrategy', {
			method: "GET",
			data: {
				id
			}
		})
	},
	getUserCount: () => {
		return request('/biz/open/getUserCount', {
			method: "GET",
		})
	},
	deleteFollow: (userId) => {
		return request("/biz/open/deleteFollow?userId=" + userId, {
			method: "GET",
		})
	},
	createUserFollow: (userId) => {
		return request("/biz/open/createUserFollow?userId=" + userId, {
			method: "POST",
		})
	},
	deleteGoodRecord: (id) => {
		return request("/biz/open/deleteGoodRecord", {
			method: "GET",
			data: {
				id
			}
		})
	},
	createGoodRecord: (id) => {
		return request("/biz/open/createGoodRecord", {
			method: "POST",
			data: {
				strategyId: id
			}
		})
	},
	deleteCollect: (id) => {
		return request("/biz/open/deleteCollect", {
			method: "GET",
			data: {
				id
			}
		})
	},
	createUserCollect: (id) => {
		return request("/biz/open/createUserCollect?id=" + id, {
			method: "POST",
		})
	},
	getStrategyPage: (data) => {
		return request("/biz/open/getStrategyPage", {
			method: "GET",
			data
		})
	},
	createStrategy: (data) => {
		return request("/biz/open/createStrategy", {
			method: "POST",
			data
		})
	},
	allList: (data) => {
		return request("/biz/open/all-list", {
			method: "GET",
			data
		})
	}
}

export default openApi